<?php
require_once 'IMStorage.php';
abstract class AMStorage implements IMStorage {
	
	protected static $conn;
	public static $dsn, $dbh;
	//protected $dbh;
	public $query;
	protected $id = null;
	
	private function __construct(){}
	
	public function save(){
		if($this->id === null)
			$this->add();
		else
			$this->update();
	}
	
	public static function instance($dsn = ''){}
	public function connect(){}
	public function exec(){}
	public function close(){}
	abstract public function add();
	abstract public function update();
	abstract public function remove();
}
?>